//package com.github.websocket.interceptor;
//
//import org.springframework.http.server.ServerHttpRequest;
//import org.springframework.http.server.ServerHttpResponse;
//import org.springframework.http.server.ServletServerHttpRequest;
//import org.springframework.stereotype.Component;
//import org.springframework.web.socket.WebSocketHandler;
//import org.springframework.web.socket.server.support.HttpSessionHandshakeInterceptor;
//
//import java.util.Map;
//
///**
// * @author  Crab2Died
// *  <p></p>
// */
//@Component
//public class WebSocketHandshakeInterceptor extends HttpSessionHandshakeInterceptor {
//
//    @Override
//    public boolean beforeHandshake(ServerHttpRequest request, ServerHttpResponse response,
//                                   WebSocketHandler handler, Map<String, Object> map) throws Exception {
//       return super.beforeHandshake(request, response, handler, map);
//    }
//
//    @Override
//    public void afterHandshake(ServerHttpRequest request, ServerHttpResponse response,
//                               WebSocketHandler handler, Exception e) {
//        super.afterHandshake(request, response, handler, e);
//    }
//}
